package com.miniboy.imageloader_sample;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;

import com.miniboy.imageloader.ImageLoader;
import com.miniboy.imageloader.config.ImageOptions;

public class SingleActivity extends AppCompatActivity {

    private final String url = "http://img.my.csdn.net/uploads/201309/01/1378037235_7476.jpg";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_single);
        ImageLoader loader = FLYApplication.getInstance().getImageLoader();
        ImageOptions options = loader.getImageOptions().clone();
        options.mWidth = 200;
        options.mHeight = 200;
        loader.resetOptions(options);
        loader.into((ImageView) findViewById(R.id.id_single_image)).url(url).load();
    }
}
